package com.ly.count.impl.room.transfer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.count.room.param.CPlusRoomPage;
import com.ly.count.room.po.CPlusRoom;

public class CPlusRoomTransfer {
    public static Page<CPlusRoom> toPage(CPlusRoomPage cPlusRoomPage) {
        Page<CPlusRoom> page = new Page<>();
        page.setTotal(cPlusRoomPage.getTotal());
        page.setCurrent(cPlusRoomPage.getCurrent());
        page.setSize(cPlusRoomPage.getSize());

        return page;
    }
}
